package a入门.day3;

public class 算术运算符 {
    public static void main(String[] args) {
        int a=49;
        int b=20;
        int r=a+b;
        r=a-b;
        r=a*b;
        //当'/'左右两边全是整数，则运算结果为取整数运算
        r=a/b;
        r='a'/b;
        r='中'/b;
        //r=(int)(a/20.0);//0
        double d=a/20.0;
        System.out.println(d);

        r=a%b;
        System.out.println(r);
    }

}
